﻿@model IEnumerable<shop.NgheNghiep>

<select name="MaNN">
    <option  value="">Không chọn</option>
    
    @foreach (var item in Model)
    {   if(ViewBag.type=="1")
         {
            <option value="@item.MaNN"> @item.NgheNghiep1</option>
         }  
         else
         {
            if(item.MaNN == ViewBag.MaNN )
            {
                <option selected="selected" value="@item.MaNN"> @item.NgheNghiep1</option> 
            }
            else
            {
                <option value="@item.MaNN"> @item.NgheNghiep1</option>  
            }
         }
    }
</select>
